package cn.itsy.service.log;

import cn.itsy.dao.log.LogDao;
import cn.itsy.utils.Syslog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @author: MisterGay
 * @date: 2019-06-11 9:04
 */
@Service(value = "logServiceimpl")
public class LogServiceimpl implements LogService {
    @Resource(name = "logDaoimpl")
    private LogDao logDao;

    @Override
    public void saveLog(String sql, Syslog syslog) {
        this.logDao.saveLog(sql, syslog);
    }

    @Override
    public List<Syslog> querySyslogAll(String sql) {
        List<Syslog> syslogs = this.logDao.querySyslogAll(sql);
        return syslogs;
    }
}
